package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.QueryProjectQuestionnaireListReqDto;
import com.emm.yixun.common.app.QueryProjectQuestionnaireListResDto;
import com.emm.yixun.customer.service.app.CustomerServiceAppFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.vo.QueryProjectQuestionnaireListReqVo;

/**
 * 获取项目问卷列表
 * 
 * @author liujunze
 *
 */
@Service("queryProjectQuestionnaireListHander")
public class QueryProjectQuestionnaireListHander extends com.emm.yixun.openapi.hander.base.CommonAbstractHander{
	
	@Autowired
	private CustomerServiceAppFacade customerServiceAppFacade;
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		QueryProjectQuestionnaireListReqVo req = (QueryProjectQuestionnaireListReqVo)reqDto;
		QueryProjectQuestionnaireListReqDto reqDto1 = req.getParams();
		BaseResponseDTO<QueryProjectQuestionnaireListResDto> res = new BaseResponseDTO<QueryProjectQuestionnaireListResDto>();
		res.setResData(customerServiceAppFacade.queryQuestionnaireList(reqDto1));
		return res;
	}
	
}
